import cv2
import tkinter as tk
from tkinter import Label
from PIL import Image, ImageTk

from mychart.VideoPlayer import VideoPlayer

if __name__ == "__main__":
    # 创建主窗口
    root = tk.Tk()
    # 视频源可以是网络视频流的URL
    video_source = "https://cdn.pixabay.com/video/2024/09/29/233867_large.mp4"  # 替换为你自己的网络视频URL
    player = VideoPlayer(root, video_source)
    root.mainloop()